package com.jogger.newprint;

import android.app.Application;

import com.seuic.scanner.Scanner;

import timber.log.Timber;

/**
 * Created by Jogger on 2017/10/10.
 */

public class MyApp extends Application {

    private Scanner mScanner;
    public static MyApp sMyApp;

    @Override
    public void onCreate() {
        super.onCreate();
        if (BuildConfig.DEBUG) {
            Timber.plant(new Timber.DebugTree());
        }
        sMyApp=this;
//        mScanner = ScannerFactory.getScanner(this);
//        Timber.i("-------mscan:"+mScanner);
//        mScanner.open();
    }
    public Scanner getScanner(){
        return mScanner;
    }

    @Override
    public void onTerminate() {
        super.onTerminate();
//        mScanner.close();
    }
}
